package eip.chapter9.splitaggregate;

import java.io.Serializable;

public class UserInfo implements InformationResponse, Serializable {

	private static final long serialVersionUID = -8855653335749455622L;
	
	private String userID;
	private String lastName;
	private String firstName;
	private String telephone;
	private String emailAddress;
	private String streetName;
	private String streetNumber;
	private String city;
	private String country;
	
	public UserInfo() {
	}
	
	public UserInfo(String userID, String lastName, String firstName, String telephone, String emailAddress, String streetName, String streetNumber, String city, String country) {
		super();
		this.userID = userID;
		this.lastName = lastName;
		this.firstName = firstName;
		this.telephone = telephone;
		this.emailAddress = emailAddress;
		this.streetName = streetName;
		this.streetNumber = streetNumber;
		this.city = city;
		this.country = country;
	}
	
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getEmailAddress() {
		return emailAddress;
	}
	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getStreetName() {
		return streetName;
	}
	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}
	public String getStreetNumber() {
		return streetNumber;
	}
	public void setStreetNumber(String streetNumber) {
		this.streetNumber = streetNumber;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}

	/**
	 * toString method: creates a String representation of the object
	 * @return the String representation
	 * @author e.sale
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("UserInfo[");
		buffer.append("city = ").append(city);
		buffer.append(", country = ").append(country);
		buffer.append(", emailAddress = ").append(emailAddress);
		buffer.append(", firstName = ").append(firstName);
		buffer.append(", lastName = ").append(lastName);
		buffer.append(", streetName = ").append(streetName);
		buffer.append(", streetNumber = ").append(streetNumber);
		buffer.append(", telephone = ").append(telephone);
		buffer.append(", userID = ").append(userID);
		buffer.append("]");
		return buffer.toString();
	}
}
